# GO111MODULES=on
# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build 交叉编译
registry ?= registry.cn-beijing.aliyuncs.com/hufengjiu1
tag ?= php:v1.0
ci ?= 1
f ?= dockerfile

build:
	docker build -f ${f} -t ${registry}/${tag} . 
run:
	 docker run -it --rm ${registry}/${tag}  /bin/bash
sync:
	rsync -av  --exclude=".*" --exclude='/output/' --exclude='/cert/' --exclude='/config/' --delete ./* root@121.36.33.75:/home/www/workspace/go/src/dk/
tail:
	tail -f /root/workspace/logs/dk/*.log